package main

import "fmt"

type chengfabiao struct {
	num int
}

func (c chengfabiao) print() {

	for i := 1 ; i <= c.num; i++ {

		for j := 1; j <= i; j++ {

			fmt.Printf("%dX%d=%d\t", i, j, i * j)

		}

		fmt.Println()

	}
	fmt.Println("请按任意键继续. . .")

}

func main() {

	var c chengfabiao = chengfabiao{num: 9}
	c.print()

}